package com.zijin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zijin.entity.Skype412Account;
import com.zijin.mapper.Skype412AccountMapper;
import com.zijin.service.Skype412AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * skype412人账户信息Service实现
 * */
@Service
public class Skype412AccountServiceImpl extends ServiceImpl<Skype412AccountMapper, Skype412Account> implements Skype412AccountService {

    @Autowired
    private Skype412AccountMapper skype412AccountMapper;
    /**
     * 根据卡号查找账户信息
     * */
    @Override
    public List<Skype412Account> findAccountByBankNo(String tradeBankNo) {
        LambdaQueryWrapper<Skype412Account> queryWrapper = Wrappers.<Skype412Account>lambdaQuery();
        queryWrapper.eq(Skype412Account::getTradeBankNo, tradeBankNo);
        List<Skype412Account> skype412Account = skype412AccountMapper.selectList(queryWrapper);
        return skype412Account;
    }
}
